﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Collections;
using System.Threading;

namespace NETService
{
    //public class ConsoleApp
    //{
    //    /// <summary>
    //    /// Constructor for console application
    //    /// </summary>
    //    /// <param name="applicationPath"></param>
    //    /// <param name="consoleMode"></param>
    //    public ConsoleApp(string applicationPath, bool consoleMode)
    //    {
    //        //If you need to exit the application before it reaches this point, you need to use the line below, or the service will not stop running.
    //        //But if you are running a socket server or something that needs to stay alive after this method has been executed, remove the line below.
    //        //Environment.Exit(0);
    //    }
    //    /// <summary>
    //    /// Clean all the things in here
    //    /// </summary>
    //    public virtual void ConsoleClose() {}
    //}

    public interface IConsole
    {
        /// <summary>
        /// Constructor for console application
        /// </summary>
        /// <param name="applicationPath"></param>
        /// <param name="consoleMode"></param>
        void Start(bool consoleMode);
        /// <summary>
        /// Clean all the things in here
        /// </summary>
        void Stop();
    }
}
